Smush\Core\Helper D

Total Complexity 130
Dependencies 10
Dependents 49
Total lines 941
Lines of code 425
Logical lines of code 234
Comment lines 412
Methods 34
Properties 2

Methods 34

Method Rating Maintainability Complexity Lines of code
file_exists()
A
47 13 35
cache_get()
A
51 8 27
get_raw_attached_file()
A
56 8 17
fetch_image_sizes()
A
49 7 31
logger()
S
47 6 38
delete_permanently()
S
56 7 18
get_mime_type()
S
56 6 18
check_animated_file_contents()
S
54 5 23
is_smushable()
S
56 5 18
filter_by_mime()
S
60 5 13
is_non_rest_media()
S
60 5 13
size_limit_exceeded()
S
61 5 12
filter_error()
S
62 4 11
loopback_supported()
S
63 4 10
get_wpmudev_apikey()
S
66 4 9
get_attached_file()
S
60 3 12
get_image_media_link()
S
61 3 12
get_page_url()
S
70 3 6
get_file_ext()
S
66 3 8
format_attachment_meta_item()
S
69 3 6
format_meta_from_post()
S
66 3 9
cache_set()
S
65 2 9
cache_delete()
S
68 2 7
get_image_sizes()
S
69 2 7
get_pngjpg_savings()
S
66 2 8
get_recheck_images_link()
S
64 2 10
get_user_name()
S
74 2 4
is_user_allowed()
S
74 2 4
get_url()
S
64 1 11
exists_or_downloaded()
S
78 1 3
wp_update_attachment_metadata()
S
75 1 4
original_file()
S
72 1 5
clean_file_path()
S
78 1 3
check_animated_status()
S
75 1 4